<script type="text/javascript" language="javascript" src="<?=base_url()?>public/js/jquery.validate.js"></script>
<script>
	$(document).ready(function(){
		$('form[name=frm]').validate({
			rules: {
				again_password: {
				  equalTo: "#new_password"
				}
			  }							 
		});
		$('#present_password').val('');
		$('#present_password').focus();
	});	
</script>
<?php
	$attributes = array('name' => 'frm', 'onsubmit' => '' );
	echo form_open(('/admin_tt/do_change_password/'), $attributes);
?>
<table class="tbl" align="left">
	<tr>
    	<td>Current Password</td>
        <td>
        	<input name="present_password" id="present_password" class="input text required" type="password" />
        </td>
    </tr>  
    <tr>
    	<td>New Password</td>
        <td>
        	<input name="new_password" id="new_password" class="input text required" minlength='6' type="password" />
        </td>
    </tr>
     <tr>
    	<td>Confirm Password</td>
        <td>
        	<input name="again_password" id="again_password" class="input text required"  type="password"/>
        </td>
    </tr> 
    <tr>
    	<td>
        	<input type="submit" value="Submit"  />
        </td>
    </tr>
</table>
</form>